package wetalk.software.bupt.com.wetalk.view.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import wetalk.software.bupt.com.wetalk.R;

public class GroupListActivity extends BaseActivity {
    private ImageView imageRight;
    private TextView txtTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_groupslist);
        //initNewGroupBroadCast();
        initTitle();
        txtTitle = (TextView) findViewById(R.id.txt_title);
        imageRight = (ImageView) findViewById(R.id.img_right);
        txtTitle.setText("群聊");
        imageRight.setVisibility(View.VISIBLE);
        imageRight.setImageResource(R.drawable.icon_add);


    }
    private void initTitle(){
        RelativeLayout rvRight=(RelativeLayout)findViewById(R.id.rv_img_right);
        rvRight.setVisibility(View.GONE);
        TextView txt=(TextView)findViewById(R.id.txt_title);
        txt.setText("群组信息");
        RelativeLayout rvLeft=(RelativeLayout)findViewById(R.id.rv_img_back);
        rvLeft.setVisibility(View.VISIBLE);
        rvLeft.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }


}

